<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace frontend\assets;

use yii\web\AssetBundle;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'static/css/base.css',
        'static/css/microoh-v5.css',
        'static/css/flat-ui.css',
        'static/css/animate.css',
        'static/css/develop.css',
        'static/css/toolbar.css',
        'static/css/style.css',
        'static/css/public-same.css',
        '/assets/style/public.css',
    ];

    public $js = [
        'static/js/jquery-1.js',
        //'static/js/10001292.js',
        'static/js/bootstrap.js',
        //'static/js/common.js',
        //'/assets/js/MogFocus.js',

    ];

    public $jsOptions = [
        'position' => \yii\web\View::POS_HEAD
    ];

    //public $depends = [
    //    'yii\web\JqueryAsset',
    //];

	//加载页面js文件
    public static function addPageScript($view, $jsfile){
        $view->registerJsFile($jsfile, [AppAsset::className(), 'depends' => 'frontend\assets\AppAsset']);
    }
}
